<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>自定义Vim编辑器源码 | 智能技术</title>
    <meta name="generator" content="VuePress 1.8.2">
    <script data-ad-client="ca-pub-1977396037355374" async="true" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <meta name="description" content="vim编辑器配置文件">
    <meta name="baidu-site-verification" content="fP9EQkbGCM">
    
    <link rel="preload" href="/assets/css/0.styles.89695ccf.css" as="style"><link rel="preload" href="/assets/js/app.cee3c598.js" as="script"><link rel="preload" href="/assets/js/27.0d727913.js" as="script"><link rel="prefetch" href="/assets/js/10.81160393.js"><link rel="prefetch" href="/assets/js/11.777111f5.js"><link rel="prefetch" href="/assets/js/12.c58a9b41.js"><link rel="prefetch" href="/assets/js/13.16b64097.js"><link rel="prefetch" href="/assets/js/14.81b84b8b.js"><link rel="prefetch" href="/assets/js/15.ae9bbcfc.js"><link rel="prefetch" href="/assets/js/16.cb71ce72.js"><link rel="prefetch" href="/assets/js/17.7eb91f50.js"><link rel="prefetch" href="/assets/js/18.1f750554.js"><link rel="prefetch" href="/assets/js/19.525a894f.js"><link rel="prefetch" href="/assets/js/2.0a188998.js"><link rel="prefetch" href="/assets/js/20.f186cf8f.js"><link rel="prefetch" href="/assets/js/21.b3e01dc7.js"><link rel="prefetch" href="/assets/js/22.ea0793c3.js"><link rel="prefetch" href="/assets/js/23.da81792d.js"><link rel="prefetch" href="/assets/js/24.0d075789.js"><link rel="prefetch" href="/assets/js/25.901ac41c.js"><link rel="prefetch" href="/assets/js/26.c3112033.js"><link rel="prefetch" href="/assets/js/3.0d59f57e.js"><link rel="prefetch" href="/assets/js/4.58ac6eea.js"><link rel="prefetch" href="/assets/js/5.b48f4120.js"><link rel="prefetch" href="/assets/js/6.6a7eb352.js"><link rel="prefetch" href="/assets/js/7.0a07ef26.js"><link rel="prefetch" href="/assets/js/8.0332c4f5.js"><link rel="prefetch" href="/assets/js/9.9df962ab.js">
    <link rel="stylesheet" href="/assets/css/0.styles.89695ccf.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><section id="global-layout" data-v-4fb7124e><header class="header" data-v-61b62cbe data-v-4fb7124e><div class="header-navbar" data-v-61b62cbe><div class="flex-xbc main header-nav" data-v-61b62cbe><div class="nav-link" data-v-61b62cbe><!----> <nav class="link-list" data-v-61b62cbe><a href="/" class="list-item router-link-active" data-v-61b62cbe>首页</a><a href="/posts/" class="list-item" data-v-61b62cbe>博客</a><a href="/category/" class="list-item" data-v-61b62cbe>分类</a><a href="/tag/" class="list-item" data-v-61b62cbe>标签</a><a href="/about/" class="list-item" data-v-61b62cbe>关于</a></nav></div> <div class="search-box" data-v-61b62cbe><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div></div></div> </header> <!----> <section class="page" data-v-4fb7124e data-v-4fb7124e><section class="info" style="background-image:url(/images/11.jpg);" data-v-52fe94f0><article class="main info-content" data-v-a5c9dc12 data-v-52fe94f0><div class="content-header" data-v-a5c9dc12><h1 class="header-title" data-v-a5c9dc12>自定义Vim编辑器源码</h1></div> <div class="flex-wcc content-tag" data-v-a5c9dc12><div class="inblock tag-list" data-v-a5c9dc12><a href="/category/实用工具/" class="tag-text" data-v-a5c9dc12>实用工具
      </a></div> <span class="tag-space" data-v-a5c9dc12>/</span> <div class="inblock tag-list" data-v-a5c9dc12><a href="/tag/vim/" class="tag-text" data-v-a5c9dc12>vim
      </a></div></div> <div class="content content__default" data-v-a5c9dc12><p>创建文件.vimrc并将文件保存到~/ 目录下</p> <p>代码如下
</p> <div class="language- extra-class"><pre class="language-text"><code>&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot; 显示相关  

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot;set shortmess=atI   &quot; 启动的时候不显示那个援助乌干达儿童的提示  

&quot;winpos 5 5          &quot; 设定窗口位置  

&quot;set lines=40 columns=155    &quot; 设定窗口大小  

&quot;set nu              &quot; 显示行号  

set go=             &quot; 不要图形按钮  

&quot;color asmanian2     &quot; 设置背景主题  

set guifont=Courier_New:h10:cANSI   &quot; 设置字体  

syntax on           &quot; 语法高亮  

autocmd InsertLeave * se nocul  &quot; 用浅色高亮当前行  

autocmd InsertEnter * se cul    &quot; 用浅色高亮当前行  

&quot;set ruler           &quot; 显示标尺  

set showcmd         &quot; 输入的命令显示出来，看的清楚些  

&quot;set cmdheight=1     &quot; 命令行（在状态行下）的高度，设置为1  

&quot;set whichwrap+=&lt;,&gt;,h,l   &quot; 允许backspace和光标键跨越行边界(不建议)  

&quot;set scrolloff=3     &quot; 光标移动到buffer的顶部和底部时保持3行距离  

set novisualbell    &quot; 不要闪烁(不明白)  

set statusline=%F%m%r%h%w\ [FORMAT=%{&amp;ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\&quot;%d/%m/%y\ -\ %H:%M\&quot;)}   &quot;状态行显示的内容  

set laststatus=1    &quot; 启动显示状态行(1),总是显示状态行(2)  

set foldenable      &quot; 允许折叠  

set foldmethod=manual   &quot; 手动折叠  

&quot;set background=dark &quot;背景使用黑色 

set nocompatible  &quot;去掉讨厌的有关vi一致性模式，避免以前版本的一些bug和局限  

&quot; 显示中文帮助

if version &gt;= 603

    set helplang=cn

    set encoding=utf-8

endif

&quot; 设置配色方案

&quot;colorscheme murphy

&quot;字体 

&quot;if (has(&quot;gui_running&quot;)) 

&quot;   set guifont=Bitstream\ Vera\ Sans\ Mono\ 10 

&quot;endif 


 
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936

set termencoding=utf-8

set encoding=utf-8

set fileencodings=ucs-bom,utf-8,cp936

set fileencoding=utf-8



&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot;&quot;&quot;&quot;&quot;新文件标题&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot;新建.c,.h,.sh,.java文件，自动插入文件头 

autocmd BufNewFile *.cpp,*.[ch],*.sh,*.java exec &quot;:call SetTitle()&quot; 

&quot;&quot;定义函数SetTitle，自动插入文件头 

func SetTitle() 

    &quot;如果文件类型为.sh文件 

    if &amp;filetype == 'sh' 

        call setline(1,&quot;\#########################################################################&quot;) 

        call append(line(&quot;.&quot;), &quot;\# File Name: &quot;.expand(&quot;%&quot;)) 

        call append(line(&quot;.&quot;)+1, &quot;\# Author: ma6174&quot;) 

        call append(line(&quot;.&quot;)+2, &quot;\# mail: ma6174@163.com&quot;) 

        call append(line(&quot;.&quot;)+3, &quot;\# Created Time: &quot;.strftime(&quot;%c&quot;)) 

        call append(line(&quot;.&quot;)+4, &quot;\#########################################################################&quot;) 

        call append(line(&quot;.&quot;)+5, &quot;\#!/bin/bash&quot;) 

        call append(line(&quot;.&quot;)+6, &quot;&quot;) 

    else 

        call setline(1, &quot;/*************************************************************************&quot;) 

        call append(line(&quot;.&quot;), &quot;    &gt; File Name: &quot;.expand(&quot;%&quot;)) 

        call append(line(&quot;.&quot;)+1, &quot;    &gt; Author: ma6174&quot;) 

        call append(line(&quot;.&quot;)+2, &quot;    &gt; Mail: ma6174@163.com &quot;) 

        call append(line(&quot;.&quot;)+3, &quot;    &gt; Created Time: &quot;.strftime(&quot;%c&quot;)) 

        call append(line(&quot;.&quot;)+4, &quot; ************************************************************************/&quot;) 

        call append(line(&quot;.&quot;)+5, &quot;&quot;)

    endif

    if &amp;filetype == 'cpp'

        call append(line(&quot;.&quot;)+6, &quot;#include&lt;iostream&gt;&quot;)

        call append(line(&quot;.&quot;)+7, &quot;using namespace std;&quot;)

        call append(line(&quot;.&quot;)+8, &quot;&quot;)

    endif

    if &amp;filetype == 'c'

        call append(line(&quot;.&quot;)+6, &quot;#include&lt;stdio.h&gt;&quot;)

        call append(line(&quot;.&quot;)+7, &quot;&quot;)

    endif

    &quot;新建文件后，自动定位到文件末尾

    autocmd BufNewFile * normal G

endfunc 

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot;键盘命令

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;



nmap &lt;leader&gt;w :w!&lt;cr&gt;

nmap &lt;leader&gt;f :find&lt;cr&gt;



&quot; 映射全选+复制 ctrl+a

map &lt;C-A&gt; ggVGY

map! &lt;C-A&gt; &lt;Esc&gt;ggVGY

map &lt;F12&gt; gg=G

&quot; 选中状态下 Ctrl+c 复制

vmap &lt;C-c&gt; &quot;+y

&quot;去空行  

nnoremap &lt;F2&gt; :g/^\s*$/d&lt;CR&gt; 

&quot;比较文件  

nnoremap &lt;C-F2&gt; :vert diffsplit 

&quot;新建标签  

map &lt;M-F2&gt; :tabnew&lt;CR&gt;  

&quot;列出当前目录文件  

map &lt;F3&gt; :tabnew .&lt;CR&gt;  

&quot;打开树状文件目录  

map &lt;C-F3&gt; \be  

&quot;C，C++ 按F5编译运行

map &lt;F5&gt; :call CompileRunGcc()&lt;CR&gt;

func! CompileRunGcc()

    exec &quot;w&quot;

    if &amp;filetype == 'c'

        exec &quot;!g++ % -o %&lt;&quot;

        exec &quot;! ./%&lt;&quot;

    elseif &amp;filetype == 'cpp'

        exec &quot;!g++ % -o %&lt;&quot;

        exec &quot;! ./%&lt;&quot;

    elseif &amp;filetype == 'java' 

        exec &quot;!javac %&quot; 

        exec &quot;!java %&lt;&quot;

    elseif &amp;filetype == 'sh'

        :!./%

    endif

endfunc

&quot;C,C++的调试

map &lt;F8&gt; :call Rungdb()&lt;CR&gt;

func! Rungdb()

    exec &quot;w&quot;

    exec &quot;!g++ % -g -o %&lt;&quot;

    exec &quot;!gdb ./%&lt;&quot;

endfunc

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot;&quot;实用设置

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot; 设置当文件被改动时自动载入

set autoread

&quot; quickfix模式

autocmd FileType c,cpp map &lt;buffer&gt; &lt;leader&gt;&lt;space&gt; :w&lt;cr&gt;:make&lt;cr&gt;

&quot;代码补全 

set completeopt=preview,menu 

&quot;允许插件  

filetype plugin on

&quot;共享剪贴板  

set clipboard+=unnamed 

&quot;从不备份  

set nobackup

&quot;make 运行

:set makeprg=g++\ -Wall\ \ %

&quot;自动保存

set autowrite

set ruler                   &quot; 打开状态栏标尺

set cursorline              &quot; 突出显示当前行

set magic                   &quot; 设置魔术

set guioptions-=T           &quot; 隐藏工具栏

set guioptions-=m           &quot; 隐藏菜单栏

&quot;set statusline=\ %&lt;%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&amp;fileformat}\ %{&amp;encoding}\ %c:%l/%L%)\

&quot; 设置在状态行显示的信息

set foldcolumn=0

set foldmethod=indent 

set foldlevel=3 

set foldenable              &quot; 开始折叠

&quot; 不要使用vi的键盘模式，而是vim自己的

set nocompatible

&quot; 语法高亮

set syntax=on

&quot; 去掉输入错误的提示声音

set noeb

&quot; 在处理未保存或只读文件的时候，弹出确认

set confirm

&quot; 自动缩进

set autoindent

set cindent

&quot; Tab键的宽度

set tabstop=4

&quot; 统一缩进为4

set softtabstop=4

set shiftwidth=4

&quot; 不要用空格代替制表符

set noexpandtab

&quot; 在行和段开始处使用制表符

set smarttab

&quot; 显示行号

set number

&quot; 历史记录数

set history=1000

&quot;禁止生成临时文件

set nobackup

set noswapfile

&quot;搜索忽略大小写

set ignorecase

&quot;搜索逐字符高亮

set hlsearch

set incsearch

&quot;行内替换

set gdefault

&quot;编码设置

set enc=utf-8

set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936

&quot;语言设置

set langmenu=zh_CN.UTF-8

set helplang=cn

&quot; 我的状态行显示的内容（包括文件类型和解码）

&quot;set statusline=%F%m%r%h%w\ [FORMAT=%{&amp;ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\&quot;%d/%m/%y\ -\ %H:%M\&quot;)}

&quot;set statusline=[%F]%y%r%m%*%=[Line:%l/%L,Column:%c][%p%%]

&quot; 总是显示状态行

set laststatus=2

&quot; 命令行（在状态行下）的高度，默认为1，这里是2

set cmdheight=2

&quot; 侦测文件类型

filetype on

&quot; 载入文件类型插件

filetype plugin on

&quot; 为特定文件类型载入相关缩进文件

filetype indent on

&quot; 保存全局变量

set viminfo+=!

&quot; 带有如下符号的单词不要被换行分割

set iskeyword+=_,$,@,%,#,-

&quot; 字符间插入的像素行数目

set linespace=0

&quot; 增强模式中的命令行自动完成操作

set wildmenu

&quot; 使回格键（backspace）正常处理indent, eol, start等

set backspace=2

&quot; 允许backspace和光标键跨越行边界

set whichwrap+=&lt;,&gt;,h,l

&quot; 可以在buffer的任何地方使用鼠标（类似office中在工作区双击鼠标定位）

set mouse=a

set selection=exclusive

set selectmode=mouse,key

&quot; 通过使用: commands命令，告诉我们文件的哪一行被改变过

set report=0

&quot; 在被分割的窗口间显示空白，便于阅读

set fillchars=vert:\ ,stl:\ ,stlnc:\

&quot; 高亮显示匹配的括号

set showmatch

&quot; 匹配括号高亮的时间（单位是十分之一秒）

set matchtime=1

&quot; 光标移动到buffer的顶部和底部时保持3行距离

set scrolloff=3

&quot; 为C程序提供自动缩进

set smartindent

&quot; 高亮显示普通txt文件（需要txt.vim脚本）

au BufRead,BufNewFile *  setfiletype txt

&quot;自动补全

:inoremap ( ()&lt;ESC&gt;i

:inoremap ) &lt;c-r&gt;=ClosePair(')')&lt;CR&gt;

:inoremap { {&lt;CR&gt;}&lt;ESC&gt;O

:inoremap } &lt;c-r&gt;=ClosePair('}')&lt;CR&gt;

:inoremap [ []&lt;ESC&gt;i

:inoremap ] &lt;c-r&gt;=ClosePair(']')&lt;CR&gt;

:inoremap &quot; &quot;&quot;&lt;ESC&gt;i

:inoremap ' ''&lt;ESC&gt;i

function! ClosePair(char)

    if getline('.')[col('.') - 1] == a:char

        return &quot;\&lt;Right&gt;&quot;

    else

        return a:char

    endif

endfunction

filetype plugin indent on 

&quot;打开文件类型检测, 加了这句才可以用智能补全

set completeopt=longest,menu

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot; CTags的设定  

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

let Tlist_Sort_Type = &quot;name&quot;    &quot; 按照名称排序  

let Tlist_Use_Right_Window = 1  &quot; 在右侧显示窗口  

let Tlist_Compart_Format = 1    &quot; 压缩方式  

let Tlist_Exist_OnlyWindow = 1  &quot; 如果只有一个buffer，kill窗口也kill掉buffer  

let Tlist_File_Fold_Auto_Close = 0  &quot; 不要关闭其他文件的tags  

let Tlist_Enable_Fold_Column = 0    &quot; 不要显示折叠树  

autocmd FileType java set tags+=D:\tools\java\tags  

&quot;autocmd FileType h,cpp,cc,c set tags+=D:\tools\cpp\tags  

&quot;let Tlist_Show_One_File=1            &quot;不同时显示多个文件的tag，只显示当前文件的

&quot;设置tags  

set tags=tags  

&quot;set autochdir 



&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot;其他东东

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;

&quot;默认打开Taglist 

let Tlist_Auto_Open=1 

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot; 

&quot; Tag list (ctags) 

&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot; 

let Tlist_Ctags_Cmd = '/usr/bin/ctags' 

let Tlist_Show_One_File = 1 &quot;不同时显示多个文件的tag，只显示当前文件的 

let Tlist_Exit_OnlyWindow = 1 &quot;如果taglist窗口是最后一个窗口，则退出vim 

let Tlist_Use_Right_Window = 1 &quot;在右侧窗口中显示taglist窗口

&quot; minibufexpl插件的一般设置

let g:miniBufExplMapWindowNavVim = 1

let g:miniBufExplMapWindowNavArrows = 1

let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1

</code></pre></div></div> <div class="content-time" data-v-a5c9dc12><time datetime="2017年12月27日" class="time-text" data-v-a5c9dc12>Create Time: 2017年12月27日
    </time> <time datetime="2020年9月13日" class="time-text" data-v-a5c9dc12>Last Updated: 2020年9月13日
    </time></div></article> <section class="flex-xb main info-nav" data-v-e08c9474 data-v-52fe94f0><a href="/2017/12/27/deepwalk-%E8%AE%BA%E6%96%87%E7%AC%94%E8%AE%B0/" class="flex-xb nav-item" data-v-e08c9474><div class="flex-xcc item-img" data-v-e08c9474><img data-src="/images/1.jpg" loading="lazy" alt="DeepWalk 论文笔记" class="img lazy" data-v-e08c9474></div> <article class="flex-ysc item-content" data-v-e08c9474><h2 class="content-title" data-v-e08c9474>DeepWalk 论文笔记</h2> <div class="content" data-v-e08c9474></div></article></a> <a href="/2017/12/26/the-neural-hawkes-process/" class="flex-xb nav-item" data-v-e08c9474><div class="flex-xcc item-img" data-v-e08c9474><img data-src="/images/5.jpg" loading="lazy" alt="The Neural Hawkes Process" class="img lazy" data-v-e08c9474></div> <article class="flex-ysc item-content" data-v-e08c9474><h2 class="content-title" data-v-e08c9474>The Neural Hawkes Process</h2> <div class="content" data-v-e08c9474></div></article></a></section> <!----></section></section> <footer class="footer" data-v-5bc4f524 data-v-4fb7124e><nav class="link-list" data-v-5bc4f524><a href="https://gitee.com/tjuchaochao" target="_blank" rel="noopener noreferrer" class="list-item" data-v-5bc4f524>gitee</a></nav> <a href="/" class="copyright router-link-active" data-v-5bc4f524>智能技术 © 2021</a></footer></section><div class="global-ui"><!----><!----></div></div>
    <script src="/assets/js/app.cee3c598.js" defer></script><script src="/assets/js/27.0d727913.js" defer></script>
  </body>
</html>
